package example.factory.func;

public class TestFunc {

    public static void main(String[] args) {
        Factory factory = new AudiFactory();
        factory.getCar().getName();

        factory = new BenzFactory();
        factory.getCar().getName();
    }
}
